<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function delete0(arr) {
            var j = 0;
            var arr1=[];
            for (i = 0; i <= arr.length-1; i++) {
                if (arr[i] !== 0) {
                    arr1[j] = arr[i];
                    j++;
                }
            }
            return arr1;
        }
        console.log(delete0([21,68,0,"rjie",0,33,90,0,2]));
    </script>
</head>
<body>
    
</body>
</html>